﻿using DatabaseUpdaterMgr;
using System.Transactions;
using System;
using System.Collections.Generic;

namespace DatabaseUpdater
{
    internal interface InterfaceUpdateInfo
    {
        /// <summary>
        /// 读取中间库数据
        /// </summary>
        /// <returns></returns>
        List<UpdateInfo> GetDataBaseInfo();
        /// <summary>
        /// 失败信息处理
        /// </summary>
        /// <param name="data"></param>
        /// <param name="memo"></param>
        void MessageProcessing(UpdateInfo data,string memo);
          /// <summary>
        /// 数据更新
        /// </summary>
        void UpdateDataBaseInfo(UpdateInfo data);

    }

    public class UpdateInfo
    {
        ///转换为系统内部项目字段
        /// <summary>
        /// 项目编码
        /// </summary>
        public string ProjCode {  get; set; }
        /// <summary>
        /// 项目名称
        /// </summary>
        public string ProjName { get; set; }
        /// <summary>
        /// 项目负责人
        /// </summary>
        public string PersonId { get; set; }
       
    }

}
